{"ast":null,"code":"import _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport classNames from 'classnames';\nimport RcImage from 'rc-image';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport defaultLocale from '../locale/en_US';\nimport { getTransitionName } from '../_util/motion';\n// CSSINJS\nimport PreviewGroup, { icons } from './PreviewGroup';\nimport useStyle from './style';\nvar Image = function Image(_a) {\n  var customizePrefixCls = _a.prefixCls,\n    preview = _a.preview,\n    rootClassName = _a.rootClassName,\n    otherProps = __rest(_a, [\"prefixCls\", \"preview\", \"rootClassName\"]);\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    _React$useContext$loc = _React$useContext.locale,\n    contextLocale = _React$useContext$loc === void 0 ? defaultLocale : _React$useContext$loc,\n    getContextPopupContainer = _React$useContext.getPopupContainer;\n  var prefixCls = getPrefixCls('image', customizePrefixCls);\n  var rootPrefixCls = getPrefixCls();\n  var imageLocale = contextLocale.Image || defaultLocale.Image;\n  // Style\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var mergedRootClassName = classNames(rootClassName, hashId);\n  var mergedPreview = React.useMemo(function () {\n    if (preview === false) {\n      return preview;\n    }\n    var _preview = typeof preview === 'object' ? preview : {};\n    var getContainer = _preview.getContainer,\n      restPreviewProps = __rest(_preview, [\"getContainer\"]);\n    return Object.assign(Object.assign({\n      mask: /*#__PURE__*/React.createElement(\"div\", {\n        className: \"\".concat(prefixCls, \"-mask-info\")\n      }, /*#__PURE__*/React.createElement(EyeOutlined, null), imageLocale === null || imageLocale === void 0 ? void 0 : imageLocale.preview),\n      icons: icons\n    }, restPreviewProps), {\n      getContainer: getContainer || getContextPopupContainer,\n      transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n      maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName)\n    });\n  }, [preview, imageLocale]);\n  return wrapSSR( /*#__PURE__*/React.createElement(RcImage, Object.assign({\n    prefixCls: \"\".concat(prefixCls),\n    preview: mergedPreview,\n    rootClassName: mergedRootClassName\n  }, otherProps)));\n};\nImage.PreviewGroup = PreviewGroup;\nexport default Image;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","EyeOutlined","classNames","RcImage","React","ConfigContext","defaultLocale","getTransitionName","PreviewGroup","icons","useStyle","Image","_a","customizePrefixCls","prefixCls","preview","rootClassName","otherProps","useContext","getPrefixCls","locale","contextLocale","getContextPopupContainer","getPopupContainer","rootPrefixCls","imageLocale","wrapSSR","hashId","mergedRootClassName","mergedPreview","useMemo","_preview","getContainer","restPreviewProps","assign","mask","createElement","className","transitionName","maskTransitionName"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/image/index.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport classNames from 'classnames';\nimport RcImage from 'rc-image';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport defaultLocale from '../locale/en_US';\nimport { getTransitionName } from '../_util/motion';\n// CSSINJS\nimport PreviewGroup, { icons } from './PreviewGroup';\nimport useStyle from './style';\nconst Image = _a => {\n  var {\n      prefixCls: customizePrefixCls,\n      preview,\n      rootClassName\n    } = _a,\n    otherProps = __rest(_a, [\"prefixCls\", \"preview\", \"rootClassName\"]);\n  const {\n    getPrefixCls,\n    locale: contextLocale = defaultLocale,\n    getPopupContainer: getContextPopupContainer\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('image', customizePrefixCls);\n  const rootPrefixCls = getPrefixCls();\n  const imageLocale = contextLocale.Image || defaultLocale.Image;\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const mergedRootClassName = classNames(rootClassName, hashId);\n  const mergedPreview = React.useMemo(() => {\n    if (preview === false) {\n      return preview;\n    }\n    const _preview = typeof preview === 'object' ? preview : {};\n    const {\n        getContainer\n      } = _preview,\n      restPreviewProps = __rest(_preview, [\"getContainer\"]);\n    return Object.assign(Object.assign({\n      mask: /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-mask-info`\n      }, /*#__PURE__*/React.createElement(EyeOutlined, null), imageLocale === null || imageLocale === void 0 ? void 0 : imageLocale.preview),\n      icons\n    }, restPreviewProps), {\n      getContainer: getContainer || getContextPopupContainer,\n      transitionName: getTransitionName(rootPrefixCls, 'zoom', _preview.transitionName),\n      maskTransitionName: getTransitionName(rootPrefixCls, 'fade', _preview.maskTransitionName)\n    });\n  }, [preview, imageLocale]);\n  return wrapSSR( /*#__PURE__*/React.createElement(RcImage, Object.assign({\n    prefixCls: `${prefixCls}`,\n    preview: mergedPreview,\n    rootClassName: mergedRootClassName\n  }, otherProps)));\n};\nImage.PreviewGroup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